package com.yipingnai.blog.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @Author: jiangym
 * @Date: 2020/4/11 12:55
 */
public class Category {
    private Long id;
    private String cateName;
    private String name;
    private String path;
    private Integer priority;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private Integer isUse;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCateName() {
        return cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }



    public Category() {
    }

    public Integer getIsUse() {
        return isUse;
    }

    public void setIsUse(Integer isUse) {
        this.isUse = isUse;
    }

    public Category(Long id, String cateName, String name, String path, Integer priority, Date date, Integer isUse) {
        this.id = id;
        this.cateName = cateName;
        this.name = name;
        this.path = path;
        this.priority = priority;
        this.date = date;
        this.isUse = isUse;
    }
}
